package com.banksoft.admin.service;

import com.banksoft.admin.entity.Order;
import com.banksoft.front.bean.Page;
import com.banksoft.front.bean.ProductBean;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * Created by vanjoger on 2017/1/2.
 */
public interface OrderService {

    List<ProductBean> preOrder(String ids);

    Order save(String userId, String ids, String userName, String telephone, String province, String provinceName, String city, String cityName, String area, String areaName, String address, String remark, String bonus_amount, String post_amount);

    void updateOrder(String orderId, String status);


    JSONObject saveSjOrder(String type, String remark, String userId, String province, String provinceName, String city, String cityName, String area, String areaName, String amount, String userName, String telephone, String idCard, String bankName, String cardName, String cardNo, String addressProvince, String addressProvinceName, String addressCity, String addressCityName, String addressArea, String addressAreaName,String address);

    List<Order> query(Map map);

    Page queryPage(String userId, int pageNo, int pageSize, String isToday);

    List<Order> listOrderByStatus(String name);

    List<Order> count(Map map);

    void sendTextMessage(Order order);

    List<Order> listByUserIds(String[] ids);

    Page queryTeamOrderPage(String userId, String isToday);

    void cancelOrder(String orderId);

    Integer countQueryPage(Map params);

    List<Order> queryByPage(Map params);

    List<Order> listByOrderNo(String orderNo);
}
